home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Table / Include / TblDef.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.3 KB  |  79 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                TblDef.h
  4. //    Release Version:    $ 1.0d11 $ 
  5. //
  6. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef TBLDEF_H
  11. #define TBLDEF_H
  12.  
  13. // Uncomment the following three lines, and define them appropriately!!
  14. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  15. // to be 1.  Otherwise define it to be 0.
  16. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  17. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  18. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  19. // define it to be zero.  Note that if your part is scriptable is must support
  20. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  21.  
  22. #define FW_SUPPORTS_EMBEDDING 1
  23. #define FW_SUPPORTS_EXTENSIONS 0
  24. #define FW_SUPPORTS_SCRIPTING 0
  25.  
  26. #ifndef FW_SUPPORTS_EMBEDDING
  27. #error You must define FW_SUPPORTS_EMBEDDING to be 0 or 1 (immediately above)
  28. #endif
  29.  
  30. #ifndef FW_SUPPORTS_EXTENSIONS
  31. #error You must define FW_SUPPORTS_EXTENSIONS to be 0 or 1 (immediately above)
  32. #endif
  33.  
  34. #ifndef FW_SUPPORTS_SCRIPTING
  35. #error You must define FW_SUPPORTS_SCRIPTING to be 0 or 1 (immediately above)
  36. #endif
  37.  
  38. // Kind
  39. #define kODFTableKind "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:ODFExamples:Kind:ODFTable"
  40.  
  41. // Class ID
  42. #define kODFTableEditor "ODFExamples::ODFTable"
  43.  
  44. // Editor User String
  45. #define kODFTableEditorUserString "ODFTable 1.0d11"
  46.  
  47. // Kind User String
  48. #define kODFTableKindUserString "ODF Table Example"
  49.  
  50. // Category User String
  51. #define kODFTableCategoryUserString "Table Container"
  52.  
  53. // Table OSType
  54. #define kODFTableOSType 'DFTD'
  55.  
  56. // Icon ID
  57. #define kPartIconID     145
  58.  
  59. // Properties and Values
  60. #define kTableMenuProp "Table Menu Prop"
  61. #define kTableMenuValue "Table Menu Value"
  62.  
  63. #define kKindCategoryMapId            128
  64. #define kEditorKindMapId            kKindCategoryMapId+1
  65. #define kEditorUserStringMapId        kEditorKindMapId+1
  66. #define kKindUserStringMapId        kEditorUserStringMapId+1
  67. #define kCategoryUserStringMapId    kKindUserStringMapId+1
  68. #define kOldMacOSTypeMapId            kCategoryUserStringMapId+1
  69.  
  70. // ----- Menu Strings ID -----
  71. #define kMenuStrings 1000
  72.  
  73. #define kTableStr                    1
  74. #define kHideGridStr                2
  75. #define kShowGridStr                3
  76.  
  77. #endif
  78.  
  79.